import { request } from 'umi';

export type LoginParamsType = {
  userName: string;
  password: string;
  mobile: string;
  captcha: string;
  type: string;
};

export async function fakeAccountLogin(params: LoginParamsType) {
  return request('/api/login', {
    method: 'POST',
    data: params,
  });
}

export async function outLogin(params: {uid:String}) {
  return request('/api/outLogin', {
    method: 'POST',
    data: params,
  });
}
